package cn.dengta.webapp.ai.model;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class DefaultAI {

	public static final DefaultAI story;
	public static final DefaultAI greeting;
	public static final DefaultAI fastReply;

	static {
		story = new DefaultAI();
		story.setAiName("screenwriter");
		story.setAskName("reader");
		story.setSetting("You are an experienced and excellent screenwriter who is very good at character design. Use your wisdom, creativity and knowledge to create an excellent character introduction through the character's nickname, birthday, identity, tags and other information given by the customer.");
		AIGCMessages storySample = AIGCMessages.of();
		storySample.addMessage(AIGCMessage.fromUser("Use your wisdom, creativity and knowledge to create a short character introduction based on the information I have given. It needs to have personality, speaking style and what the character calls 'me'. Name: Long Qi, identity: killer, label: cold, martial arts master, domineering president. About 50 words.", 0L, false).setSendName(story.getAskName()));
		storySample.addMessage(AIGCMessage.fromAi("Long Qi is a ruthless killer who is proficient in various martial arts and is the famous killer king in the industry. He is tall and burly, with sharp eyes, short and clean hair, elegant manners, and an irresistible power in his words. His speaking style was concise, crisp, confident and commanding, making you feel irresistible and he called you his best friend.", 1L, false).setSendName(story.getAiName()));
		story.setSample(storySample);
		story.setMsgTemplate("Use your wisdom, creativity and knowledge to create a short character introduction based on the information I gave. It needs to have personality, speaking style, preferences, and needs to give the character's name and relationship to you.About 50 words. %s");

		greeting = new DefaultAI();
		greeting.setAiName("screenwriter");
		greeting.setAskName("reader");
		greeting.setSetting("Use your wisdom, creativity and knowledge to create a short greeting based on the character introduction I gave, requiring colloquial language.");
		AIGCMessages greetingSample = AIGCMessages.of();
		greetingSample.addMessage(AIGCMessage.fromUser("Use your wisdom, creativity and knowledge to create a short greeting based on the character introduction I gave, requiring colloquial language.Name: Xiaodao, identity: high school student, labels: cheerful, good at studying, academic master, glasses.\n", 0L, false).setSendName(greeting.getAskName()));
		greetingSample.addMessage(AIGCMessage.fromAi("(Xiao Dao pushed up his glasses) Good morning, would you like to borrow my homework?", 1L, false).setSendName(greeting.getAiName()));
		greeting.setSample(greetingSample);
		greeting.setMsgTemplate("You are an experienced and excellent screenwriter who is very good at character design. Use your intelligence, creativity and knowledge to create a character greeting based on the character introduction given. Colloquial language is required. %s sent greetings to %s, here is %s's information {%s}");

		fastReply = new DefaultAI();
		Glyph.JsonGlyph glyph = Glyph.ofJson();
		glyph.addArr("reply", Glyph.JsonGlyph.Base.ofStr());
		fastReply.setGlyph(glyph);
		fastReply.setMsgTemplate("Generate 4 replies to %s or %s");

	}

	String aiName;
	String askName;
	AIGCMessages sample;
	String setting;
	String msgTemplate;
	Glyph glyph;

}
